package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * @program: demo
 * @description:
 * @author: Zwill
 * @create: 2019-12-27 10:28
 **/

public class UserController {
    @RequestMapping(method = RequestMethod.POST, consumes = "application/json")

    public @ResponseBody
    Map<String, Object> userWebSocket(@RequestBody Map<String, Object> params) {
        Map<String, Object> result = new HashMap<>();
        try {
            result.put("operResult", true);
        } catch (Exception e) {

        }
        return result;
    }
}
